package cn.qin.DAO;

import net.sf.json.JSONArray;

import org.json.JSONException;

import cn.qin.Models.NEWS;
import cn.qin.Models.admin;

public interface newsOperateDAO {
	public void saveNews(NEWS news);
	public void delNews(int id);
	public JSONArray showNews(String c_id) throws JSONException;
	//count显示信息的条数，cid显示信息的类别
	public JSONArray showNewsByCid(int count,String cid) throws JSONException;
	public JSONArray showOneNews(int id);
	public boolean login(admin admin);
	public JSONArray showHot();
	public void modifyPassword(String password,String username);

}
